//
//  QJDetailViewController.m
//  HonlivApp
//
//  Created by admin on 2017/6/25.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "QJDetailViewController.h"

@interface QJDetailViewController ()

@end

@implementation QJDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"请假";
}

-(void)getRequestURL{
    self.user = User.currentUser;
    [self loadRequestURL:^(GetURL handler) {
        self.viewModel = [[DetailViewModel alloc] init];
        NSDictionary *gidDic = @{@"user_name":self.user.username,@"user_id":self.user.userId,@"SqlNo":@"5",@"url":indicateOAQJ_url};
        [self.viewModel getGidWithDic:gidDic Success:^(NSString *gid) {
            NSString *requestURL = [NSString stringWithFormat:@"%@Gid=%@",HPdetail_url,gid];
            handler(requestURL);
        }];
    }];
}



@end
